package pattern.singleton;

/**
 * <b>【懒汉式-代码块同步】【不可用】</b><br>
 * Lazy Loading: 是 <br>
 * 线程安全: 否 <br>
 *
 * @Author: wangxiaonan
 * @Date: 2019/3/11
 **/
public class Singleton5 {

    private static Singleton5 INSTANCE;

    private Singleton5() {
    }

    public static Singleton5 getInstance() {
        if (INSTANCE == null) {
            synchronized (Singleton5.class) {
                INSTANCE = new Singleton5();
            }
        }
        return INSTANCE;
    }

}
